package com.linko.intelligent.remote.pojo.query;

import com.baomidou.mybatisplus.annotation.TableId;
import com.linko.intelligent.base.BaseQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DeviceOnlineQuery extends BaseQuery {
    /**
     * 设备sn
     */
    @ApiModelProperty(value = "设备sn", position = 1)
    @TableId
    private String sn;

    /**
     * 日期
     */
    @ApiModelProperty(value = "日期", position = 2)
    private Date date;

    /**
     * 在线时长
     */
    @ApiModelProperty(value = "在线时长", position = 3)
    private int onlineDuration;

    /**
     * 离线时长
     */
    @ApiModelProperty(value = "离线时长", position = 4)
    private int offlineDuration;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", position = 5)
    private short status;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;
}

